﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" x:Class="MacroprocesosWPF.Administrador.Administrador.ControUsuario.Empresa" 
             mc:Ignorable="d" Height="247" Width="345">
    <Grid Name="gridEmpresa">
        <Label Content="Empresa" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="28" FontWeight="Thin"/>
        <Label Content="Descripción" HorizontalAlignment="Left" Margin="4,124,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <TextBox x:Name="txtDescripcion" HorizontalAlignment="Left" Height="98" Margin="106,128,0,0" Text="{Binding Descripcion}"  TextWrapping="NoWrap" VerticalAlignment="Top" Width="217" BorderThickness="0" FontSize="18"/>
        <Label Content="Nombre" HorizontalAlignment="Left" Margin="28,75,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <TextBox x:Name="txtNombre" HorizontalAlignment="Left" Height="30" Margin="106,80,0,0" Text="{Binding NombreEmpresa}"  TextWrapping="Wrap" VerticalAlignment="Top" Width="217" BorderThickness="0" FontSize="18"/>
        <Button x:Name="btnNuevo" HorizontalAlignment="Left" Margin="235,16,0,0" VerticalAlignment="Top" Height="40" Width="40" Click="btnNuevo_Click">
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Ellipse Stroke="#FF2F4160" StrokeThickness="4"/>
                        <Ellipse Margin="1" x:Name="highlightCircle" Fill="#FFF6F7F8" />
                        <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.Foreground="#FF2F4160" />
                        <Image Name="Normal" Source="../../Imagenes/nuevo.png" Width="25" Height="25"/>
                        <Image Name="Pressed" Source="../../Imagenes/nuevo_pressed.png" Width="25" Height="25" Visibility="Hidden"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FFF6F7F8" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FF2F4160" />
                            <Setter TargetName="content" Property="TextBlock.Foreground" Value="#FFF6F7F8" />
                            <Setter TargetName="Normal" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="Pressed" Property="Visibility" Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
        <Button x:Name="btnGuardar" HorizontalAlignment="Left" Margin="283,16,0,0" VerticalAlignment="Top" Height="40" Width="40" Click="btnGuardar_Click">
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Ellipse Stroke="#FF2F4160" StrokeThickness="4"/>
                        <Ellipse Margin="1" x:Name="highlightCircle" Fill="#FFF6F7F8" />
                        <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.Foreground="#FF2F4160" />
                        <Image Name="Normal" Source="../../Imagenes/save.png" Width="25" Height="25"/>
                        <Image Name="Pressed" Source="../../Imagenes/save_pressed.png" Width="25" Height="25" Visibility="Hidden"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FFF6F7F8" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FF2F4160" />
                            <Setter TargetName="content" Property="TextBlock.Foreground" Value="#FFF6F7F8" />
                            <Setter TargetName="Normal" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="Pressed" Property="Visibility" Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </Grid>
</UserControl>
